import Vue from 'vue';
import i18n from '@/i18n/i18n.js';

/* eslint-disable */

const hellostr_set = (state, str) => {
    state.helloStr = str;
  };

  const switchLang = (state, lang) => {
    state.lang = lang
    i18n.locale = lang
    localStorage.setItem('lang', lang)
};

export default {
    switchLang
};

/* eslint-enable */
